#!/bin/bash

# ----------------------------------------------------------------------
# Filename:   75560-rpm-qi.sh
# Version:    1.0
# Date:       2013/12/02
# Author:     yuanhui.shi
# Email:      yuanhui.shi@cs2c.com.cn
# Summary:    02系统基本功能-07开发环境-02开发工具-02rpm构建工具-04显示软件包的详细信息
# Notes:      rpm命令
# Copyright:  China Standard Software Co., Ltd.
# History：     
#             Version 1.0, 2013/12/02
#             -   The first one
# ----------------------------------------------------------------------

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

source ../../lib/Echo.sh

source ../../lib/XmlParse.sh


function CleanData ()
{
  EchoInfo "75560-rpm-qi.sh执行完毕"
}

trap "CleanData" EXIT INT

#显示软件包详细信息
EchoInfo "给出一个待查询软件包的名称，显示软件包的详细信息"
rpm -qi	gcc
EchoResult "查询文件包信息成功"


